let url = "https://fengyuanchen.github.io/viewerjs/images";

window.createContainer = function () {
    const container = document.createElement('div');
    container.className = 'container';
    document.body.appendChild(container);
    return container;
};

window.createImage = function () {
    const container = window.createContainer();
    const image = document.createElement('img');
    image.src = `${url}/tibet-1.jpg`;
    container.appendChild(image);
    return image;
};

window.createImageList = function () {
    const container = window.createContainer();
    const list = document.createElement('ul');
    list.innerHTML = (`
    <li><img src="${url}/tibet-1.jpg"></li>
    <li><img src="${url}/tibet-2.jpg"></li>
    <li><img src="${url}/tibet-3.jpg"></li>
    <li><img src="${url}/tibet-4.jpg"></li>
    <li><img src="${url}/tibet-5.jpg"></li>
  `);
    container.appendChild(list);
    return list;
};